package com.mzj.saas.mservice.propertybill.repository;

import com.mzj.saas.mservice.propertybill.entity.EstateExpenseOther;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface EstateExpenseOtherRepository extends PagingAndSortingRepository<EstateExpenseOther, String>, JpaSpecificationExecutor<EstateExpenseOther>, JpaRepository<EstateExpenseOther, String> {

    List<EstateExpenseOther> findByCommunityIdAndChargeTypeAndEnableStatusAndStatus(String communityId, Integer chargeType, Integer enableStatus, Integer status);

    List<EstateExpenseOther> findByCommunityIdAndChargeTypeAndStatus(String communityId, Integer chargeType, Integer status);

    List<EstateExpenseOther> findByIdInAndEnableStatusAndStatus(List<String> ids, Integer enableStatus, Integer status);

}
